<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head></h:head>
<h:body>

	<ui:composition template="masterpage-acesso.xhtml">
		<ui:define name="contLogin">

			<div class="content">
				<h4 class="title">Login de Acesso</h4>

				<div class="form-group">
					<div class="col-sm-12">
						<div class="input-group">
							<span class="input-group-addon"><i class="fa fa-user"></i></span>
							<h:inputText id="username" class="form-control"
								value="#{loginBean.username}" required="true" maxlength="25" />
								<p:watermark value="Usuário" for="username"/>
							<h:message for="username" class="mensagens" />
						</div>
					</div>
				</div>


				<div class="form-group">
					<div class="col-sm-12">
						<div class="input-group">
							<span class="input-group-addon"><i class="fa fa-lock"></i></span>
							<h:inputSecret type="password" id="password" class="form-control"
								value="#{loginBean.senha}" required="true" maxlength="8" />
								<p:watermark value="Senha" for="password"/>
							<h:message for="password" class="mensagens" />
						</div>
					</div>
				</div>

			</div>
			<div class="foot">

				<h:commandButton id="btnRegistrar" value="Registrar" type="submit"
					action="#{loginBean.registrar}" styleClass="btn btn-primary"
					data-dismiss="modal" immediate="true" />

				<h:commandButton id="btnEntrar" type="submit"
					action="#{loginBean.logar}" value="Entrar"
					styleClass="btn btn-default" data-dismiss="modal" />
			</div>


		</ui:define>
	</ui:composition>


</h:body>
</html>